<?php
namespace vendor\IA;

/**
 * Created by PhpStorm.
 * User: kongb
 * Date: 2017/9/5
 * Time: 16:26
 */


class tool {
    /**
     * 获取毫秒级别的时间戳，“绝对”没有重复
     */
    public function IAgetIdentification(){
        return str_replace(".","",(strstr(microtime()," ") + strstr(microtime()," ",TRUE)));
    }

    /**
     * 获取mysql datetime类型的时间
    */
    public function IAgetDateTime(){
        return date("Y-m-d H:i:s" , time());
    }
}
